package com.xin.bi.service;

import com.xin.bi.model.dto.chart.GenChartByAiRequest;
import com.xin.bi.model.entity.Chart;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xin.bi.model.vo.BiResponse;

/**
 * @author 鑫
 * @description 针对表【chart(图表信息表)】的数据库操作Service
 * @createDate 2023-07-11 11:37:13
 */
public interface ChartService extends IService<Chart> {

    BiResponse genChart(String genChartByAiRequest, String chartData, String resAIData, Long userId);

    Long preGenChart(String genChartByAiRequest, String chartData, Long userId);

    void genChartAsync(Long chartId, String sendAIMessage);

    void handleChartUpdateError(Long chartId, String execMessage);

    String jointSendAiMessage(String genChartByAiRequest,String csvData);

}
